# Contributor: Daniele Debernardi <drebrez@gmail.com>
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
pkgname=matchbox-keyboard
pkgver=0.1.1
pkgrel=0
pkgdesc="An on screen virtual keyboard"
url="https://www.yoctoproject.org/software-item/matchbox/"
arch="all"
license="GPL-2.0-only"
makedepends="autoconf automake libtool libxft-dev libxtst-dev cairo-dev
	gtk+3.0-dev gtk+2.0-dev libx11-dev libxrender-dev libfakekey-dev"
source="http://git.yoctoproject.org/cgit/cgit.cgi/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2"
options="!check" # No test suite present

build() {
	autoreconf --install
	./configure \
		--prefix=/usr \
		--enable-cairo \
		--enable-gtk-im \
		--enable-gtk3-im \
		LDFLAGS="-lXrender -lX11"
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="388298370cd69155a8a11efb2198522fd2757b48861b110998eea38f31ded490d2ba0ee1a715d4a4f76a8e51411e5b3963229938d0be7d44a796e0543b8afa3e  matchbox-keyboard-0.1.1.tar.bz2"
